import Request from "./request";
const { postRequest, uploadRequest, paymentRequest } = new Request();

export default paymentRequest;

export const setting = (params) => postRequest('api/setting', params);

export const upload = (params) => uploadRequest('api/upload/medio', params);

export const login = (params) => postRequest('api/login/wechat', params);
export const wechatPhone = (params) => postRequest('api/wechat/phone', params);

export const userInfo = (params) => postRequest('api/user/info', params);
export const userEdit = (params) => postRequest('api/user/edit', params);
export const userPileowner = (params) => postRequest('api/user/pileowner', params);
export const userPhb = (params) => postRequest('api/user/phb', params);
export const standPhb = (params) => postRequest('api/stand/phb', params);

export const index = (params) => postRequest('api/index', params);

export const news = (params) => postRequest('api/news', params); //分页 page limit
export const newsInfo = (params) => postRequest('api/news/info', params); //id
export const newsLike = (params) => postRequest('api/news/like', params); //id

export const comment = (params) => postRequest('api/comment', params);
export const commentPost = (params) => postRequest('api/comment/post', params);

export const productIndex = (params) => postRequest('api/product/index', params);
export const product = (params) => postRequest('api/product', params); //分页 page limit
export const productInfo = (params) => postRequest('api/product/info', params); //id

export const address = (params) => postRequest('api/address', params);
export const addressPost = (params) => postRequest('api/address/post', params);
export const addressInfo = (params) => postRequest('api/address/info', params);
export const addressDefault = (params) => postRequest('api/address/default', params);
export const addressDel = (params) => postRequest('api/address/del', params);

export const sign = (params) => postRequest('api/sign', params);
export const signPost = (params) => postRequest('api/sign/post', params);

export const course = (params) => postRequest('api/course', params);
export const courseInfo = (params) => postRequest('api/course/info', params);
export const courseClassUnify = (params) => postRequest('api/course/class/unify', params);
export const courseClassInfo = (params) => postRequest('api/course/class/info', params);
export const courseClassBuy = (params) => postRequest('api/course/class/buy', params);

export const order = (params) => postRequest('api/order', params);
export const orderInfo = (params) => postRequest('api/order/info', params);
export const orderPlace = (params) => postRequest('api/order/place', params);
export const orderPayment = (params) => postRequest('api/order/payment', params);

export const orderCancel = (params) => postRequest('api/order/cancel', params);
export const orderDelivery = (params) => postRequest('api/order/delivery', params);

export const stand = (params) => postRequest('api/stand', params);
export const standPost = (params) => postRequest('api/stand/post', params);
export const standCalendar = (params) => postRequest('api/stand/calendar', params);

export const courseLearn = (params) => postRequest('api/course/learn', params);
export const courseMy = (params) => postRequest('api/course/my', params);

export const carmiExchange = (params) => postRequest('api/carmi/exchange', params);
export const log = (params) => postRequest('api/log', params);
export const pandaReceive = (params) => postRequest('api/panda/receive', params);
export const videoOpen = (params) => postRequest('api/video/open', params);

